# -*- coding:utf-8 -*-
# @FileName  :ent_monitor.py
# @Time      :2020/12/14 9:49
# @Author    :Zhoujirong
# @Desc      :

from common.http_request import Request
from biz.support.urls import ServerUrl

class EntMonitorRequest:
    @classmethod
    def getqueryconfig(cls,cookie):
        req = Request(ServerUrl.ent_get_config_url,headers=cookie)
        return req.get()

    @classmethod
    def getdeptcodename(cls,type,cookie):
        data = {
            'type': type
        }
        req = Request(ServerUrl.ent_get_org_url,data=data,headers=cookie)
        return req.post()

    @classmethod
    def getdic(cls,type,cookie):
        data = {
            'type': type
        }
        req = Request(ServerUrl.ent_get_dic_url,data=data,headers=cookie)
        return req.post()

    @classmethod
    def istopcode(cls,cookie):
        req = Request(ServerUrl.ent_get_top_url,headers=cookie)
        return req.get()

    @classmethod
    def onedayquery(cls,cookie):
        req = Request(ServerUrl.ent_get_onedayquery_url,headers=cookie)
        return req.get()

    @classmethod
    def oneweekquery(cls,cookie):
        req = Request(ServerUrl.ent_get_oneweekquery_url,headers=cookie)
        return req.get()

    @classmethod
    def realtime(cls,cookie):
        req = Request(ServerUrl.ent_get_realtime_url,headers=cookie)
        return req.get()

    @classmethod
    def instituquery(cls,cookie):
        req = Request(ServerUrl.ent_get_instituquery_url,headers=cookie)
        return req.get()

    @classmethod
    def creditquery(cls,cookie):
        req = Request(ServerUrl.ent_get_creditquery_url,headers=cookie)
        return req.get()

    @classmethod
    def internaluserquery(cls,cookie):
        req = Request(ServerUrl.ent_get_internaluserquery_url,headers=cookie)
        return req.get()

    @classmethod
    def allline(cls,cookie):
        req = Request(ServerUrl.ent_get_allline_url,headers=cookie)
        return req.get()

    @classmethod
    def querystate(cls,cookie):
        req = Request(ServerUrl.ent_get_querystate_url,headers=cookie)
        return req.get()

    @classmethod
    def credituserexcep(cls,cookie):
        req = Request(ServerUrl.ent_get_credituserexcep_url,headers=cookie)
        return req.get()

    @classmethod
    def internaluserexcep(cls,cookie):
        req = Request(ServerUrl.ent_get_internaluserexcep_url,headers=cookie)
        return req.get()





if __name__ == "__main__":
    pass